<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Flash</title>
<title>CMSIS-Driver Implementations: Flash</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="cmsis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="printComponentTabs.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 46px;">
  <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">CMSIS-Driver Implementations
   &#160;<span id="projectnumber">Version 2.6.1</span>
   </div>
   <div id="projectbrief">MCU independent device driver implementations and template files of the CMSIS-Driver API specification</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
    <ul class="tablist">
      <script type="text/javascript">
		<!--
		writeComponentTabs.call(this);
		//-->
      </script>
	  </ul>
</div>
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('driver_Flash.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Flash </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="driver_Flash_devices"></a>
Driver Implementations</h1>
<p>The <a class="el" href="index.html#driver_pack_content">ARM::CMSIS-Driver Pack</a> contains implementations of <a href="https://arm-software.github.io/CMSIS_5/Driver/html/group__flash__interface__gr.html" target="_blank"><b>CMSIS-Flash drivers</b></a> for the following devices:</p>
<table  class="cmtable" summary="Flash Drivers">
<tr>
<th>Driver </th><th>Description  <a class="anchor" id="driver_AM29x800BB"></a> </th></tr>
<tr>
<td><b>AM29x800BB</b>  </td><td>Flash interface for Parallel NOR Flash <b>AM29x800BB</b>. This product is discontinued.  <a class="anchor" id="driver_AT45DB641E"></a> </td></tr>
<tr>
<td><b>AT45DB641E</b>  </td><td>Flash interface for SPI Serial DataFlash <a href="https://www.adestotech.com/wp-content/uploads/DS-45DB641E-027.pdf" target="_blank"><b>AT45DB641E</b></a>.  <a class="anchor" id="driver_AT45DB642D"></a> </td></tr>
<tr>
<td><b>AT45DB642D</b>  </td><td>Flash interface for SPI Serial DataFlash <a href="https://www.adestotech.com/wp-content/uploads/doc3542.pdf" target="_blank"><b>AT45DB642D</b></a>.   <a class="anchor" id="driver_M29EW28F128"></a> </td></tr>
<tr>
<td><b>M29EW28F128</b>  </td><td>Flash interface for Parallel NOR Flash <a href="https://www.micron.com/parts/nor-flash/parallel-nor-flash/pc28f128m29ewhf" target="_blank"><b>M29EW28F128</b></a>.   <a class="anchor" id="driver_M29W640FB"></a> </td></tr>
<tr>
<td><b>M29W640FB</b>  </td><td>Flash interface for Parallel NOR Flash <a href="https://www.micron.com/parts/nor-flash/parallel-nor-flash/m29w640fb70n6e" target="_blank"><b>M29W640FB</b></a>.   <a class="anchor" id="driver_N25Q032A"></a> </td></tr>
<tr>
<td><b>N25Q032A</b>  </td><td>Serial NOR Flash. <a href="https://www.micron.com/parts/nor-flash/serial-nor-flash/n25q032a11ef440e" target="_blank"><b>Device info</b></a>.   <a class="anchor" id="driver_S29GL064Nx2"></a> </td></tr>
<tr>
<td><b>S29GL064Nx2</b>  </td><td>Flash interface for Parallel NOR Flash <a href="http://www.cypress.com/documentation/datasheets/s29gl064n-s29gl032n-64-mbit-32-mbit-3-v-page-mode-mirrorbit-flash" target="_blank"><b>S29GL064N</b></a>.  </td></tr>
</table>
<h1><a class="anchor" id="driver_Flash_multiple"></a>
Multiple Driver Instances</h1>
<p>CMSIS-Driver API supports multiple driver instances. The Flash drivers are implemented within a single C module and several driver instances of the same type can be used in a project as follows: </p>
<ul>
<li>
Add the first driver instance to the project. In IDEs with CMSIS-pack management support this can be done from the Run-Time Environment (RTE). </li>
<li>
Create a copy of the driver's .c file with a different file name and add it to the project. This will be the second driver instance. For example, copy <code>AT45DB641E.c</code> file as <code>AT45DB641E_2.c</code>. </li>
<li>
Copy the driver's .h file to the project or add the driver's folder to the compiler include search path. </li>
<li>
Specify the driver parameters for the second instance based on the hardware design. For example, in <code>AT45DB641E_2.c</code> the values for the flash driver number and SPI driver number need to be configured as shown below: <div class="fragment"><div class="line"><span class="preprocessor">#define DRIVER_FLASH_NUM        1</span></div>
<div class="line"><span class="preprocessor">#define DRIVER_SPI_NUM          1</span></div>
</div><!-- fragment -->  </li>
<li>
Now both Flash instances can be accessed from the application. For example: <div class="fragment"><div class="line"><span class="preprocessor">#include &quot;Driver_Flash.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="comment">/* Flash driver instances */</span></div>
<div class="line"><span class="keyword">extern</span> ARM_DRIVER_FLASH Driver_Flash0;</div>
<div class="line"><span class="keyword">extern</span> ARM_DRIVER_FLASH Driver_Flash1;</div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#define flash0  (&amp;Driver_Flash0)</span></div>
<div class="line"><span class="preprocessor">#define flash1  (&amp;Driver_Flash1)</span></div>
</div><!-- fragment -->  </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Jul 13 2020 11:25:48 for CMSIS-Driver Implementations by Arm Ltd. All rights reserved.
	<!--
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 
	-->
	</li>
  </ul>
</div>
</body>
</html>
